﻿using NPOI.Util;

namespace Mt.Site.Core.Configuration
{
    public class MtAppSettings
    {
        public static class General
        {
            public const string ICP = "App.General.ICP";

            /// <summary>
            /// 备案号
            /// </summary>
            public const string CaseNumber = "App.General.CaseNumber";

            public const string CopyRight = "App.General.CopyRight";
            public const string EMail = "App.General.EMail";
            public const string Telephone = "App.General.Tell";
            public const string Address = "App.General.Address";

            public const string RecordClicks = "App.Record.Clicks";
            public const string CacheListResult = "App.Cache.ListResult";

        }
        public static class Email
        {
            public const string UseHostDefaultEmailSettings = "App.Email.UseHostDefaultEmailSettings";
        }

        public static class TenantManagement
        {
            /// <summary>
            /// 假日
            /// </summary>
            public const string JiaRi = "app.TenantManagement.JiaRi";
            /// <summary>
            /// 调休
            /// </summary>
            public const string TiaoXiu = "app.TenantManagement.TiaoXiu";

            /// <summary>
            /// 首页置灰
            /// </summary>
            public const string HomeSetGrey = "app.TenantManagement.HomeSetGrey";
        }

        public static class Security
        {
            public const string UserMaxFailCount = "App.Security.FrontEnd.U.MaxFailCount";                   // 连续使用错误密码的最大容许次数
            public const string UserFreezeTime = "App.Security.FrontEnd.U.FreezeTime";                       // 账号自动锁定的时长（min）
            public const string UserPwdRegex = "App.Security.FrontEnd.U.PwdRegex";                           // 密码复杂度（正则）


            /// <summary>
            /// 是否启用定期更改密码策略
            /// </summary>
            public const string UserPasswordExpires = "App.UserPassword.Expires";

            // public const string NumberOfDaysOfWarningBeforePasswordExpires  : 7  （在密码过期之前警告的天数）

            /// <summary>
            /// 两次改变密码之间相距的最大天数
            /// </summary>
            public const string MaximumNumberOfDaysBetweenPasswordChange = "App.PasswordChange.MaximumNumberOfDays";
        }
    }
}
